package com.lagou.dao;

import com.lagou.annotation.modify;
import com.lagou.pojo.User;

import java.util.List;

public interface IUserDao {
    public List<User> findAll() throws Exception;

    public User findByCondition(User user) throws Exception;

    // 添加用户，返回受影响行数
//    @modify
    public int add(User user) throws Exception;

    // 按id删除用户，返回受影响行数
//    @modify
    public int deleteById(Integer id) throws Exception;

    // 按id修改用户信息，返回受影响行数
//    @modify
    public int update(User user) throws Exception;
}
